// ignore_for_file: non_constant_identifier_names
import 'package:dio/dio.dart';
import 'package:wallpaper/http/dio_instance.dart';

Future<Response> getManyAcgRandom({
  required int page,
  required int page_size,
  required int limit,
  required int r18,
}) {
  final params = {
    'page': page,
    'page_size': page_size,
    'limit': limit,
    'r18': r18,
  };
  return DioInstance.instance().get(
    path: 'https://api.manyacg.top/v1/artwork/random',
    param: params,
  );
}

// 搜索壁纸
Future<Response> getManyAcgSearch({
  required String keyword,
  required int page,
  required int page_size,
  required int limit,
  required int r18,
}) {
  final params = {
    'keyword': keyword,
    'page': page,
    'page_size': page_size,
    'limit': limit,
    'r18': r18,
  };
  return DioInstance.instance().get(
    path: 'https://api.manyacg.top/v1/artwork/list',
    param: params,
  );
}
